﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucBCL_NVKD.ascx.cs" Inherits="UC_ucBCL_NVKD" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <div class="panel panel-success">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        Báo cáo lương sản lượng nhân viên kinh doanh
                    </h3>
                </div>
                <div class="panel-body">
                    <div>
                        <asp:DropDownList ID="dlThang" AutoPostBack="true" runat="server" Width="150px" CssClass="form-control"
                            OnSelectedIndexChanged="dlThang_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:DropDownList ID="dlNam" AutoPostBack="true" OnSelectedIndexChanged="dlThang_SelectedIndexChanged"
                            runat="server" Width="110px" CssClass="form-control">
                        </asp:DropDownList>
                        
                        <asp:DropDownList ID="dlNhanVien" ToolTip="Chọn nhân viên" runat="server" DataValueField="IDs"
                            Width="250px" CssClass="form-control" DataTextField="HoTen">
                        </asp:DropDownList>
                        <asp:DropDownList ID="dlTramTron" Visible="false" Enabled="false" ToolTip="Chọn trạm trộn"
                            runat="server" DataValueField="IDs" Width="150px" CssClass="form-control" DataTextField="TenTramTron">
                        </asp:DropDownList>
                        <asp:Button ID="btnXem" CssClass="btn btn-warning" runat="server" Text="Xem"
                            OnClick="btnXem_Click" />
                        <asp:Button ID="btnSave" runat="server" Style="margin-left: 5px;" Text="Xuất báo cáo"
                            Visible="true" CssClass="btn btn-primary" OnClick="btnPrint_Click" />
                        <asp:HiddenField ID="hdTuNgay" runat="server" />
                        <asp:HiddenField ID="hdDenNgay" runat="server" />
                        <asp:ValidationSummary ID="ValidationSummary1" HeaderText="" ShowMessageBox="true"
                            ValidationGroup="Them" ShowSummary="false" EnableClientScript="true" runat="server" />
                    </div>
                    <div style="width: 100%; margin-top: 0px; overflow-x: auto;" class="wrapper">
                        <asp:GridView ID="GV" runat="server" AutoGenerateColumns="false" BackColor="White"
                            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="1" EmptyDataText="Không có dữ liệu nào"
                            EnableModelValidation="True" ShowFooter="true" Width="1800px" CssClass="form-control withall"
                            OnRowDataBound="GV_RowDataBound" onrowcreated="GV_RowCreated">
                            <Columns>
                                <asp:BoundField DataField="STT" HeaderText="STT" ItemStyle-HorizontalAlign="Center" />
                                <asp:BoundField DataField="HoTen" HeaderText="Họ tên" ItemStyle-CssClass="paddingleft" />
                                <asp:BoundField DataField="BoPhan" HeaderText="Bộ phận" ItemStyle-CssClass="paddingleft" />
                                <asp:BoundField DataField="ChucVu" HeaderText="Chức vụ" ItemStyle-CssClass="paddingleft" />
                                <asp:BoundField DataField="LuongCB" HeaderText="Lương cơ bản" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                                <asp:BoundField DataField="PhuCap" HeaderText="Phụ cấp" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                                <asp:BoundField DataField="KLMangVe" HeaderText="Khối lượng" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:N1}" />
                                <asp:BoundField DataField="DonGia" HeaderText="Đơn giá" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                                <asp:BoundField DataField="ThanhTien1" HeaderText="Thành tiền" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                                <asp:BoundField DataField="Tren1000" HeaderText=">1000" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                                <asp:BoundField DataField="Duoi1000" HeaderText="<1000" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                                <asp:BoundField DataField="KLSaiDiKi" HeaderText="Khối lượng" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:N1}" />
                                <asp:BoundField DataField="DonGiaDiKi" HeaderText="Đơn giá" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                                <asp:BoundField DataField="ThanhTien2" HeaderText="Thành tiền" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                                <asp:BoundField DataField="KLChenh" HeaderText="" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                                <asp:BoundField DataField="ThanhTien" HeaderText="Tổng tiền" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}" />
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" Font-Bold="True" HorizontalAlign="Right" />
                            <HeaderStyle BackColor="White" Font-Bold="True" ForeColor="Black" Height="30px" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <RowStyle BackColor="White" ForeColor="#000066" Height="30px" />
                            <SelectedRowStyle BackColor="Lavender" Font-Bold="false" />
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnSave" />
        </Triggers>
    </asp:UpdatePanel>